package com.yanqu.road.entity.activity.youxing;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Map;

@FieldTypeAnnotation(tableName = "t_c_xing_you_team_wish_data", desc = "行游山水-队伍-祈愿奖励")
public class CrossXingYouShanShuiWishRewardData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(update = true, desc = "队伍ID")
    private int teamId;

    @FieldTypeAnnotation(update = true, desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "玩家奖励")
    private Map<Long, ShanShuiUserWishReward> rewardMap;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        if(this.teamId != teamId) {
            this.teamId = teamId;
            setUpdateOption();
        }
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        if(this.round != round) {
            this.round = round;
            setUpdateOption();
        }
    }

    public Map<Long, ShanShuiUserWishReward> getRewardMap() {
        return rewardMap;
    }

    public void setRewardMap(Map<Long, ShanShuiUserWishReward> rewardMap) {
        this.rewardMap = rewardMap;
        setUpdateOption();
    }
}
